package org.springblade.auth.secure;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(
	description = "认证信息"
)
@Data
@Accessors(chain = true)
public class AuthInfo {
	@ApiModelProperty("令牌")
	private String accessToken;
	@ApiModelProperty("令牌类型")
	private String tokenType;
	@ApiModelProperty("刷新令牌")
	private String refreshToken;
	@ApiModelProperty("用户ID")
	@JsonSerialize(
		using = ToStringSerializer.class
	)
	private String userId;
	@ApiModelProperty("第三方系统ID")
	private String oauthId;
	@ApiModelProperty("头像")
	private String avatar = "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";
	@ApiModelProperty("角色名")
	private String authority;
	@ApiModelProperty("用户名")
	private String username;
	@ApiModelProperty("昵称")
	private String nickname;
	@ApiModelProperty("过期时间")
	private long expiresIn;
}
